/*
 * Negotiates P2P file transfer satifies Server role
 */
package rapidp2p.backend;

/**
 *
 * @author Rudy
 */
import java.io.*;
import java.net.*;
import java.util.UUID;
import java.util.*;
import java.awt.Color;
import java.awt.BorderLayout;
import java.awt.event.*;
import javax.swing.*;


public class P2PServer implements Runnable {
    
    private int port = 8008;
    private Socket listener;
    private boolean running = false;
    private Thread listenThread;
   
    String currentDirectory =  System.getProperty("user.home");
    private String shareDirectory = currentDirectory + "\\share\\";
     File sharedFiles = new File(currentDirectory + "\\share\\");
   
   
   
    public String getShareDirectory(){
    
        return this.shareDirectory;
    }
    
    public P2PServer(){
        
    }

    public P2PServer(String sharedDir){
        this.shareDirectory = sharedDir;
        

    }
    
   

            
  }

